<script setup>
import ListItem from './components/ListItem.vue';
import listItemPhoto from './components/ListItemPhoto.vue'

</script>

<template>
  <div>
    <!-- 下载区域 -->
    <div class="downApp">
      <div class="logo"></div>
      <span class="span1">0.1元包邮抢16包清风面巾纸</span>
      <span class="span2">前往购买</span>
    </div>
    <!-- 主体内容区域 -->
    <div class="index">
      <!-- 头部导航栏 -->
      <div class="header">
        <div>
          <a href="javaScript:;" class="nav">首页</a>
        </div>
        <div>
          <a href="javaScript:;" class="nav">商家入驻</a>
        </div>
        <div>
          <a href="javaScript:;" class="nav">多多火车票</a>
        </div>
        <div>
          <a href="javaScript:;" class="nav">帮助中心</a>
        </div>
      </div>
      <!-- 轮播图 -->
      <div class="index-banner">
        <img src="./images/banner1.jpg">
      </div>

      <ListItem />
      <listItemPhoto />
      <listItemPhoto />
      <listItemPhoto />
      <!-- 底部 -->
      <div class="search">
        <span>搜索好物</span>
        <span>查看更多></span>
      </div>

      <!-- 底部声明 -->

      <div class="footer">
        <!-- 横线 -->
        <div class="footer-line"></div>
        <p>版权所有：上海寻梦信息技术有限公司</p>
        <p>(增值电信业务经营许可证：沪B2-20170215)</p>


      </div>
    </div>
  </div>
</template>

<style scoped>
@media screen and (min-width:0) and (max-width:1024px) {
  .span1 {
    overflow: hidden;
    line-height: 5rem;
  }

  .index-banner img:nth-child(1) {
    width: 100%;
  }
}

@media screen and (min-width: 1025px) {
  .index-banner img:nth-child(1) {
    width: 100%;
  }
}

.downApp {
  width: 100%;
  height: 3rem;
  background-image: url('./images/下载.png');
  background-repeat: no-repeat;
  background-size: cover;
}

a {
  text-decoration: none;
  color: #000;
}

.logo {
  width: 8.7rem;
  height: 3rem;
  margin-left: 2rem;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('./images/logo.png');
}

.span1 {
  position: absolute;
  top: 0.5rem;
  left: 11.5rem;
  height: 1.92rem;
  line-height: 1.92rem;
  font-size: 0.512rem;
  color: #fff;
  z-index: 0;
}

.span2 {
  float: right;
  margin-right: 5px;
  margin-top: -30px;
  height: 2rem;
  font-size: 0.612rem;
  text-align: center;
  border-radius: .128rem;
  color: #ed2632;
  background-color: #fff;
  padding-left: 1rem;
  padding-right: 1rem;
  z-index: 2;
  padding-top: .2rem;
}

/* 主体内容 */
.index {
  background-color: #f3f3f3;
}

/* 头部导航区 */
.header {
  height: 3.1rem;
  line-height: 2.1rem;
  overflow: hidden;
}

.nav {
  float: left;
  display: block;
  margin: .6rem;
  color: #6c6c6c;
}

/* 轮播图 */
.index-banner {
  width: 100%;
  height: 100%;

}

.index-banner img {
  display: inline-block;
  overflow: hidden;
  position: relative;
  font-size: 0;
  width: 32.5rem;
  height: 14.5rem;
}

/* 底部 */
.search {
  background-color: #fff;
  width: 100%;
  margin-top: 1rem;
  padding-top: .6rem;
  padding-left: 1rem;
  box-sizing: border-box;
}

.search span {
  display: inline-block;
  width: 6rem;
  height: 3rem;
  font-size: 1.4rem;
  text-align: center;
  line-height: 3rem;
}

.search span:nth-child(2) {
  width: 6rem;
  font-size: 1rem;
  float: right;
  color: #868686;
  margin-bottom: 1rem;
}

.footer {
  width: 100%;
  height: 5rem;
  background-color: #fff;
  margin-top: 1rem;
}

.footer .footer-line {
  display: block;
  margin: 0 auto;
  width: 24rem;
  height: .6rem;
  border-bottom: .1rem solid #d6d6d6;
  margin-bottom: .4rem;
}

.footer p {
  text-align: center;
  color: #7a7a7a;
  margin-bottom: .4rem;
  font-size: 1.2rem;
}
</style>
